package aip.project.controller.bio.Offerte;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import aip.project.meta.OfferteMeta;
import aip.project.model.Offerte;
import aip.project.service.OfferteService;

public class FotoOfferteController extends Controller {
    OfferteService os = new OfferteService();
    OfferteMeta om = new OfferteMeta();
    
    @Override
    public Navigation run() throws Exception {
        Offerte o = os.getOfferta(asKey(om.key));
        show("offerta.png", o.getImmagine().getBytes());
        return null;
    }
}
